package servicetoken

var ServiceTokens = map[string]string{
	"order-service":     "order-service-token",
	"inventory-service": "inventory-service-token",
	"payment-service":   "payment-service-token",
	"user-service":      "user-service-token",
}

func ValidateToken(token string) (string, bool) {
	for service, serviceToken := range ServiceTokens {
		if serviceToken == token {
			return service, true
		}
	}
	return "", false
}
